SRCS = libip4tc.c libip6tc.c iptc.c
OBJS = $(SRCS:.c=.o)
OUT = libxplnx.a

ifndef KERNEL_DIR
KERNEL_DIR=/usr/src/linux
endif

CC = @CC@
RANLIB = @RANLIB@
CFLAGS = @CFLAGS@ -I@abs_top_builddir@ -I$(KERNEL_DIR)/include
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@

all: $(OBJS)
	ar cr $(OUT) $(OBJS)
	ranlib $(OUT)

clean:
	rm -rf $(OBJS) $(OUT) *.o

.SUFFIXES: .c .o
.c.o:
	$(CC) $(CFLAGS) -c $<
